package com.lagou.edu.service.impl;

import antlr.Parser;
import com.lagou.edu.dao.ResumeDao;
import com.lagou.edu.pojo.Resume;
import com.lagou.edu.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: ResumeServiceImpl
 * @Description: TODO
 * @Author: xuyaxi
 * @Date: 2020-01-28 23:59
 * @Version: 0.0.1
 */
@Service
public class ResumeServiceImpl implements ResumeService {

    @Autowired
    private ResumeDao resumeDao;

    @Override
    public List getAllResume() {
        return resumeDao.findAll();
    }

    @Override
    public void deleteResumeById(String id) {
        resumeDao.deleteById(Long.parseLong(id));
    }

    @Override
    public void updateResume(Resume resume) {
        resumeDao.save(resume);
    }
}
